package com.dougmccune.charts.gantt.skins
{
	import mx.skins.Border;

/**
 *  The skin for the highlighted state of the track of a Slider.
 */
public class GanttSliderHighlightSkin extends Border
{
	
	//--------------------------------------------------------------------------
	//
	//  Constructor
	//
	//--------------------------------------------------------------------------

    /**
	 *  Constructor.
	 */
	public function GanttSliderHighlightSkin()
	{
		super();
	}


	//--------------------------------------------------------------------------
	//
	//  Overridden methods
	//
	//--------------------------------------------------------------------------
	
    /**
	 *  @private
	 */
	override protected function updateDisplayList(w:Number, h:Number):void
	{
		super.updateDisplayList(w, h);
		
		var themeColor:int = getStyle("completeColor");
		
		graphics.clear();
				
		// Highlight
		drawRoundRect(
			0, 0, w, h, 0,
			themeColor, 0.7);
		
	}
}
}